package com.nq.vo.position;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


@Data
public class UserPositionDetailVo {

    // 买卖类型-买入
    public static final String TYPE_BUY = "1";
    // 买卖类型-卖出
    public static final String TYPE_SELL = "2";

    private Integer id;

    private String stockCode;

    private String stockName;

    private BigDecimal initPrice;

    private BigDecimal orderPrice;

    private BigDecimal orderTotalPrice;

    private BigDecimal allProfitAndLose;

    private Integer orderNum;

    private Integer lastNum;

    private String type;

    private String market;

    private Date orderTime;

    /**
     * 股票类型
     * 1市场股票
     * 2大宗股票
     */
    private Integer stockType;

    // 涨幅百分比   购买价格和当前最新的价格的比例
    private BigDecimal up; // 涨跌幅百分比
    // 涨跌幅价格波动   当前价格减去购买价格乘以购买数量
    private BigDecimal change; // 涨跌值变化
    // 成本应该就是购买+手续费吧
    private BigDecimal cost;

    // 总订单的购买价格
    private BigDecimal parentOrderPrice;

}
